package com.myphoto.base.log.vo;

import com.myphoto.base.util.Groups;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class P6spyLogVO {

	@NotNull(message = "P6spy日志ID不能为空！",groups = {Groups.QueryById.class,Groups.Update.class,Groups.Delete.class,Groups.QueryAllParams.class})
	@ApiModelProperty(value = "P6spy日志ID")
	private String id;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "记录时间（yyyy-MM-dd）")
	private Date logTime;
	@ApiModelProperty(value = "执行耗时（毫秒）")
	private Integer xhsj;
	@ApiModelProperty(value = "预编译SQL")
	private String ybySql;
	@ApiModelProperty(value = "带参数SQL")
	private String paramSql;
	@ApiModelProperty(value = "项目名")
	private String xmmc;

}
